package com.lin.controller;

import com.lin.pojo.MApply;
import com.lin.pojo.PageVo;
import com.lin.service.AUditQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AUditQueryController {

    @Autowired
    AUditQueryService aUditQueryService;

    @GetMapping("/audit.action")
    public PageVo<MApply> queryAuditingByCond(MApply mApply,
                                              @RequestParam(value = "pageno",defaultValue = "1") Integer pageno,
                                              @RequestParam(value = "pagesize",defaultValue = "5")Integer pagesize){
        return aUditQueryService.QueryBySelection(mApply, pageno,pagesize);
    }
}
